home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / fu_rd19f.zip / RAMDISK.TXT < prev    next >
Text File  |  1997-03-20  |  13KB  |  280 lines

  1.  
  2.                                   XMSDSK.EXE
  3.                                       &
  4.                                   EMSDSK.EXE
  5.  
  6.                            Franck UBERTO - 97/03/20
  7.                           38000 Grenoble - FRANCE
  8.                                    Email : uberto@esrf.fr
  9.  
  10.  
  11.   These utilities are 2 RAMdisks. For some people they surely will lack of
  12. some "bells and whistles", but I made them efficient and simple to use.
  13.   There are 2 programs because I wanted to optimize size and speed, so one is 
  14. for XMS and the other one is for EMS.
  15.   To get help for running them, just type: XMSDSK (or EMSDSK) /?.
  16.  
  17.   You can use them on 286 and upper (use EMSDSK86 for 8086 CPU). Once installed
  18. they will take about 500 bytes of memory.
  19.  
  20.   You can resize the disk (down to zero, or up to 2 Gb if available) at any
  21. time and so regain memory for another usage. This is possible on DOS command 
  22. line but *NOT* under WINDOWS because of virtualization. The transient part of 
  23. EXE will calculate all parameters for the new disk (the same ones used by
  24. MS-DOS for hard disk, so they should be convenient for all cases).
  25.  
  26.   Take care, if you shell out of a DOS program and modify the size of the disk:
  27. in the case you have set TEMP (or TMP) environment variable on the ramdisk or
  28. you have told this program to use the RAM disk, then some (hidden) files may
  29. have been created and some (not) pleasant things can happen.
  30.  
  31.   These RAM disks can be installed *ON THE COMMAND LINE* (and hence in
  32. autoexec.bat for example, see below). This way users can even *CHOOSE THE
  33. DRIVE LETTER* to be used.
  34.  
  35.   Although the installation method (on command line) has been successfully 
  36. tested on MS-DOS 3.x, 4.0, 5.0, 6.x (adapted years ago from "Undocumented DOS"
  37. by Andrew Schulman, Addison-Wesley), it can't be certified that other MS-DOS 
  38. versions or 'clones' support it.
  39.   BUT see the compatibility list somewhere below.
  40.  
  41.   By _SPECIFYING A DRIVE_ this permits to install the RAM disk between or after
  42. CDROM and network disks (some people want to have them at given 'letter' 
  43. drives; unfortunately MS-DOS assigns drive name as they are loaded). BTW this 
  44. method can improve some disk cache behaviour (if the cache can't be disabled
  45. for a given drive, by loading the RAM disk after the cache software, this 
  46. latter does not see the RAM disk and so does not try to cache it: it is not 
  47. only superfluous to cache a RAM disk but it wastes cache resources).
  48.  
  49. NB1: for a drive to be successfully used when specified on the command line
  50.      one must take care that this drive is <= LASTDRIVE , default value
  51.      (when not set in config.sys) is E.
  52.  
  53. NB2: when DBLSPACE/DRVSPACE is loaded there is 2 LASTDRIVE to take into 
  54.      account: the one in CONFIG.SYS and another one in DBLSPACE/DRVSPACE.INI.
  55.      This latter is a read-only, hidden, system file located, in general, on 
  56.      your boot disk, or C:, or the host-disk.
  57.      It seems that the highest of the 2 values takes precedence, but there 
  58.      are exceptions (else it won't be funny  :-) ): if one or more drives are
  59.      installed on "slots" reserved for DBLSPACE/DRVSPACE then LASTDRIVE is 
  60.      incremented accordingly.
  61.      Sorry, I tried to be as clear as possible but I can't be more as it's 
  62.      very far to be clear for my poor person.  :) :)
  63.  
  64.  
  65.   You can use and distribute these files: it's FREEWARE.
  66.  
  67.   So ENJOY ...
  68.  
  69.  
  70.   
  71.   * Some hints ...
  72.   -----------------
  73.   
  74.   * About XMS and EMS memory ...
  75.   
  76.   XMS memory is allocated in _contiguous_ block. So you can have the surprise
  77. of not being able to resize XMSDSK although MEM (or other) reports that you
  78. have plenty of XMS mem available, strange isn't it ?
  79. The fact is that other programs may have requested fixed blocks of memory
  80. and now XMS mem is _fragmented_. Yes just like old DOS memory !
  81. The solution is to load programs which need fixed mem blocks _before_ XMSDSK
  82. so as to prevent XMS fragmentation. This way you'll be able to resize XMSDSK
  83. from 0 to up the last Kbyte of available XMS memory.
  84.  
  85.   This is another advantage of loading the RAM disk from the command line.
  86.   
  87.   Note that on some systems fragmentation can nevertheless persist: this is
  88. related to the way these BIOS or hardware configuration deal with upper mem.
  89.   
  90.   This fragmentation is not seen with EMSDSK because EMS mem (true or emulated)
  91. is, sort of, 'scrambled' to appear to be contiguous.
  92.  
  93.  
  94.   * About disks in general ...
  95.  
  96.   Always try to work in a sub-directory: the root directory is assigned a fixed
  97. size when the disk is formatted and, in most cases, it is limited to 512
  98. entries (files or directories) so the root can be "overflowed" although
  99. there's a lot of space left on the disk.
  100. This is particularly true as XMSDSK and EMSDSK are resizable disks: root size
  101. depends on the total size of the disk.
  102. This is even more of a concern if you use long filenames under Win95: long
  103. filename takes up one entry for the equivalent short name and several other
  104. entries to store the long name. So this should fill up the root directory
  105. very rapidly.
  106.  
  107.  
  108.   * About Win95 ... (from a happy user  :-)
  109.   
  110. Reaction of Windows 95 with EMSDSK/XMSDSK:
  111.  
  112. Loading from  | Autoexec.bat      | Config.sys
  113. --------------+-------------------+----------------
  114. XMSDSK        | No Problems (1)   | Big Warning (2)
  115. --------------+-------------------+----------------
  116. EMSDSK        | No Problems (1)   | Big Warning (2)
  117. --------------+-------------------+----------------
  118. EMSDSK86      | No Problems (1)   | Big Warning (2)
  119.  
  120. (1):
  121. Win95 does use the 16-Bit (=compatibility) mode to access this drive
  122. but leaves all other drives unaffected and (32-Bit accessed) functional.
  123. If you right-click your "Workplace" then Properties->Performance
  124. you will see the XMS/EMSDSK drive is used in compatibility mode,
  125. which in that case does NOT harm the performance or decrease stability.
  126. A little note:
  127. With XMSDSK loaded you might sometimes hear about 1 to 3 seconds
  128. of increades HD activity during startup of the Graphical User Interface.
  129. This is normal and doesn't do anything bad.
  130.  
  131. (2):
  132. Win95 starts up with a warning that a driver from CONFIG.SYS
  133. reduces the system performance.
  134. If you right-click your "Workplace" then Properties->Performance
  135. You will see that all drives are used in compatibility mode,
  136. which in that case DOES harm the performance.
  137. With EMSDSK this big warning didn't appear at startup at my machine
  138. (why ever), but again all drives are used in compatibility mode.
  139.  
  140. So the solution is to put the ramdisk into your autoexec.bat and
  141. Win95 will use this drive without any problems. Even if the size is
  142. zero, you will only get an "unable to access" message when
  143. trying to read from that drive for example from the Explorer.
  144. You will have to define the size of that drive before the start of
  145. the Graphical User Interface.
  146.  
  147. This little testing was done with XMS/EMSDSK version 1.9e on
  148. a P5/133 MHz/48MB RAM/DOS 7.0/Win95, self built of course,
  149. by Joachim Otahal <otahaljm@trick.informatik.uni-stuttgart.de>
  150. PS: If you are interested how to start and end Win95 like you did with
  151.     Win3.11 email me.
  152.  
  153.  
  154.  
  155.   * Examples of use
  156.   ------------------
  157.  
  158.   device[high]='path'\XMSDSK.EXE [size in Kbytes] (or EMSDSK.EXE)
  159.      Install ramdisk in config.sys.
  160.      If size is not specified then disk has a null size.
  161.      
  162.   If the RAM disk is not loaded, at the first time the EXE will be run it
  163.   will ask to do so. So if you want to do it purposely, in autoexec.bat for
  164.   example, type:
  165.  
  166.   XMSDSK [size in Kbytes] [drive:] /y (or EMSDSK)
  167.      This will try to load driver in upper mem without being prompted.
  168.      The driver part is relocated in the "best fit" place first in upper 
  169.      memory otherwise, if unsuccessful, in lower memory. This should prevent
  170.      memory fragmentation.
  171.      If a drive is specified then it will be tried otherwise first available
  172.      drive will be used. Drive must be <= LASTDRIVE (in config.sys or 
  173.      dblspace/drvspace.ini, see NB2 above).
  174.  
  175.   XMSDSK (or EMSDSK)
  176.      On DOS command line, tells you the size and drive used by the ramdisk.
  177.  
  178.   XMSDSK <size in Kbytes> (or EMSDSK)
  179.      Modify the size of the ramdisk.
  180.  
  181.   XMSDSK <size in Kbytes> /y (or EMSDSK)
  182.      In a batch file this prevents being prompted when modifying size.
  183.      XMSDSK (and EMSDSK) returns a value which can be used with "errorlevel"
  184.      to tell where it is installed: 0 if not installed or in case of error,
  185.      1 for drive A (huh ?), 2 for B (huh huh ?), 3 for C (hmmm ?), etc ...
  186.  
  187.   XMSDSK /u (or EMSDSK)
  188.      Remove driver from memory, disk doesn't exist anymore.
  189.      
  190.   XMSDSK /u /y (or EMSDSK)
  191.      Same as above, without prompting.  :-)
  192.  
  193.  
  194.   NB1: size is in Kbytes (1024 bytes) and rounded to the upper 16 Kbytes.
  195.   NB2: options are _CASE SENSITIVE_.
  196.   NB3: it's better to not use loadhigh with EMS/XMSDSK as it can relocate 
  197.        itself with more success than DOS could do.
  198.  
  199.  
  200.   * History
  201.   ----------
  202.  
  203.     v1.0  (May 92)   Initial version.
  204.     v1.1  (Jun 92)   Adds some optimization in resident part.
  205.     v1.2  (Oct 93)   Adds some tests in size redefinition part.
  206.     v1.3  (Apr 94)   Corrects a bug when requested size was around 4000 Kb
  207.                      and another one which limited size to 16 Mb.
  208.                      Adds more accurate error messages instead of "error
  209.                      during installation".
  210.     v1.4  (Feb 96)   Some cosmetic cleaning.
  211.     v1.5  (Mar 96)   Adds possibility of installation on the command line.
  212.     v1.6  (Apr 96)   Drive to be used can be specified on the command line.
  213.                      Corrects a bug which prevent compatibility with SCANDISK
  214.                      (may be other ?) program.
  215.                      Adds option y.
  216.     v1.7  (Apr 96)   Bug fix.
  217.     v1.8  (Apr 96)   Some cleaning.
  218.     v1.9  (Sep 96)   Supports up to 64 Mbytes.
  219.                      Adds option u to remove driver from memory.
  220.                      EMSDSK and EMSDSK86 can be used in place of each other
  221.                      safely.  :-)
  222.     v1.9a (Sep 96)   Supports up to 2 Gbytes. This should stop the question
  223.                      about "could it support more than xxxKb?".  :)
  224.     v1.9b (Oct 96)   Corrects a problem with DBLSPACE/DRVSPACE.
  225.     v1.9c (Dec 96)   TSR part is now relocated "dynamically" in upper memory.
  226.                      Fixes a problem with NWDOS 7 XMS manager.
  227.                      Some cosmetic change.
  228.     v1.9d (Dec 96)   Fixes a bug in options parser.
  229.                      !!! Options parser is _CASE SENSITIVE_.
  230.     v1.9e (Mar 97)   Kills some bugs (problems around 32 Mbytes).
  231.              Sticks to FAT12 up to 32 Mbytes to get higher speed.
  232.     v1.9f (Mar 97)   Some cosmetic change to get GUEST95 happy.
  233.                      Adds some hints to this doc about Win95.
  234.  
  235.  
  236.   Thanks, for their help and testing (or suggestion), to:
  237.     Philippe Ahles <>
  238.     Mervyn Baldwin <>
  239.     Ethan Brodsky <ebrodsky@pobox.com>
  240.     Frank Decandia <tron@tao.agoron.com>
  241.     Lee Goldstein <72077.2054@compuserve.com>
  242.     Peter Hayward <peter@cdsl.demon.co.uk>
  243.     Armand Kadrichu <a.kadrichu@intelsat.int>
  244.     Bernard Marone <marone@conline.com>
  245.     Pino Navato <Pino.Navato@p18.f225.n335.z2.fidonet.org>
  246.     Jim Oliver <jim.oliver@welcom.gen.nz>
  247.     Joachim Otahal <otahaljm@trick.informatik.uni-stuttgart.de>
  248.     Michel Peru <peru@esrf.fr>
  249.     Vladimir Plotto <V.Plotto@frec.bull.fr>
  250.     Mike Ray <mer1@cornell.edu>
  251.     John Stockton <jrs@dclf.npl.co.uk>
  252.     Michel Toussaint <100334.2645@compuserve.com>
  253.     Ian Woolley <iwoolley@southcom.com.au>
  254.  
  255.  
  256. PS1: as you may have seen this package is FREEWARE. I would be glad if you
  257.      appreciate (more :-) or less :-( ) it to send a little Email message.
  258.      Thanks.
  259.     
  260. PS2: EMS/XMSDSK is known to work with the following Operating Systems:
  261.      MSDOS 3 to 7 (Win95), DosEmu (Linux), NWDOS 7 (OpenDOS 7), PCDOS 7.
  262.      May be other?
  263.      It works too with these "special" apps: DBLSPACE/DRVSPACE, GUEST/GUEST95.
  264.  
  265.  
  266.   * Disclaimer
  267.   -------------
  268.  
  269.  Copyright (C) 1992 - 1997  Franck UBERTO
  270.  
  271.  This package is offered to you "AS IS" without any warranty. This software has
  272. been thoroughly tested but no guarantee is given that it will work on every
  273. computer. The copyright owner may not be held liable for any damages, direct
  274. or consequential, which may result from the the use of this program.
  275.  
  276.  This archive is freely distributable. You may use the software and share it
  277. with all your friends (or others) as long as the program is supplied in its
  278. original, unmodified form, which includes this documentation. This program
  279. must not be distributed for profit.
  280.